using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

using Smg.XML;
using Smg.DAL;
using Smg.Model;
using Smg.Source;

namespace Smg.Source
{
    class ProjectOp
    {
        public ProjectOp()
        { 
        }

        public static StProject GetProjectInfo(string ProjectPath)
        {
            StProject stProject = new StProject();

            try
            {
                if (File.Exists(ProjectPath))
                {
                    stProject = ObjectXMLSerializer<StProject>.Load(ProjectPath);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return stProject;
        }
    }
}
